#ifndef _IRRLICHT_TEXTURE_H_
#define _IRRLICHT_TEXTURE_H_

#include "sIrrConfig.h"

namespace sgui
{
namespace engine
{

class sIrrlichtEngine;

class sIrrlichtTexture: public sTexture
{
private:
	irr::video::ITexture*   m_tex;
    sIrrlichtEngine&        m_engine;
    irr::core::rect<s32>    m_drawRect;
public:
	void draw(const math::sRectf& rect) const;
	void drawClip(const math::sRectf& rect, const math::sRectf& clipRect) const;
	
	void update(const preset::sPreset& preset);

	sIrrlichtTexture(sIrrlichtEngine& engine, const res::sTextureResource& res, const preset::sTexturePreset& preset);
};

};
};

#endif